package stz.flash.main.state;

import stz.flash.main.ModeChangeHandler;
import stz.flash.main.strobe.field.StrobeControlBar;
import stz.flash.main.strobe.model.Strobe;


public class StrobeModeState implements ModeState {

	private static StrobeModeState instance = new StrobeModeState();

	private StrobeModeState() {
	}

	public static StrobeModeState getIns() {
		return instance;
	}
	
	public synchronized void runC() {
		ModeChangeHandler.changeIntoFlashlightMode();
	}
	
	public void runL() {
	}

	public void runB() {
	}
	
	public void runSpace() {
		Strobe.toggleNormalFlash();
	}

	public void runVolumeUp() {
		StrobeControlBar.getIns().moveUpward();
	}

	public void runVolumeDown() {
		StrobeControlBar.getIns().moveDownward();
	}
	
	public void runSpeakerphone() {
		Strobe.toggleStrobeFlash();
	}
}